import { defHttp } from '@/utils/http/axios'

enum Api {
  // 同比
  GET_YOY_DATA = '/chart/lastCycleDataCompare',
  // 环比
  GET_QOQ_DATA = '/chart/thisCycleData',
  // 占比
  GET_RATIO_DATA = '/chart/thisCycleDataPie'
}

export const getYoyData = (data) => defHttp.post({ url: Api.GET_YOY_DATA, data })
export const getQoqData = (data) => defHttp.post({ url: Api.GET_QOQ_DATA, data })
export const getRatioData = (data) => defHttp.post({ url: Api.GET_RATIO_DATA, data })
